<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>Vue</title>
		<link rel="stylesheet" href="index.css" />
		<script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script>
	</head>
	<body>
		
		<div id="app">
			
  			<my-div msg="今天"></my-div>
  			<my-div msg="明天"></my-div>
  			
		</div>
		
		<!--此处为组件容器，用在展示在id=app的区域-->
	
		<script type="text/template" id="my_div">
				<div>
					<h1>{{msg}}</h1>
				</div>	
		</script>
		
	
		
	</body>
</html>
<script src="./index.js"></script>
